package com.xl.xkittt

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import androidx.databinding.DataBindingUtil
import com.xl.xkittt.databinding.ActivityMainBinding
import com.xl.xkit.AppHealthInfoUtil
import com.xl.xkit.KitData

class MainActivity : AppCompatActivity() {
    private val TAG = "MainActivity"
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        var binding =
            DataBindingUtil.setContentView<ActivityMainBinding>(this, R.layout.activity_main)

        AppHealthInfoUtil.getInstance().start()
        binding.btn.setOnClickListener {

            Log.e(TAG, "CPU数据: ${KitData.getCpu()}")
            Log.e(TAG, "内存数据: ${KitData.getMemory()}")
            Log.e(TAG, "FPS数据: ${KitData.getFps()}")

        }

    }
}